package com.example.proyyj.Service;

import com.example.proyyj.Entity.Calligraphy;
import com.example.proyyj.Entity.CollectionCalligraphy;
import com.example.proyyj.Impl.CollectionCalligraphyImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class CollectionCalligraphyService implements CollectionCalligraphyImpl {

    @Resource
    CollectionCalligraphyImpl collectionCalligraphy;
    @Override
    public CollectionCalligraphy collectionCalligraphy(int UserId, int CalligraphyId) {
        return collectionCalligraphy.collectionCalligraphy(UserId, CalligraphyId);
    }

    @Override
    public int addCalligraphy(int UserId, int CalligraphyId) {
        return collectionCalligraphy.addCalligraphy(UserId, CalligraphyId);
    }

    @Override
    public int delCalligraphy(int UserId, int CalligraphyId) {
        return collectionCalligraphy.delCalligraphy(UserId, CalligraphyId);
    }

    @Override
    public List<CollectionCalligraphy> lookCalligraphylist(int UserId) {
        return collectionCalligraphy.lookCalligraphylist(UserId);
    }

    @Override
    public Calligraphy lookCalligraphy(int CalligraphyId) {
        return collectionCalligraphy.lookCalligraphy(CalligraphyId);
    }
}
